require_relative '../node_modules/react-native-macos/scripts/react_native_pods'

ENV['IS_REANIMATED_EXAMPLE_APP'] = '1'

require_relative '../../../packages/react-native-reanimated/scripts/clangd-add-xcode-step.rb'

prepare_react_native_project!

target 'MacOSExample-macOS' do
  platform :macos, '14.0'
  use_native_modules!

  use_react_native!(
    :path => '../node_modules/react-native-macos',
    :hermes_enabled => true,
    :fabric_enabled => true,
    :new_arch_enabled => true,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  post_install do |installer|
    react_native_post_install(installer)
  end

  add_clangd_generation_step()
end
